-- violent_state
-- created by zhuangsl
-- 狂暴之力

return {
    fetchProps = function(who, status, condition)
        local props  = {};
        local propId = PropM.getPropId("attrib3");
        local value  = tonumber(condition["value"]);
        local endRound = condition["end_round"];

        if value > 0 then
            table.insert(props, { propId, "attack", value, endRound, });
            table.insert(props, { propId, "magic", value, endRound, });
        end

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        -- 效果
        local value = condition["value"];
        desc = string.gsub(desc, "{value}", value);

        return desc;
    end,
};
